package com.company.cloud.article.modules.mgr.controller.req;


import com.company.cloud.common.bean.BasePageParam;

import com.company.cloud.common.constant.BaseConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.util.StringUtils;

@Getter
@Setter
public class PlatformArticleQuery4PageParam extends BasePageParam {
//
//	@ApiModelProperty(value = "公司")
//	private String companyNo;

	@ApiModelProperty(value = "标题")
	private String title;

	@ApiModelProperty(value = "标签")
	private String tag;

	@ApiModelProperty(value = "是否需要详细数据(YN) 1是 0否")
	private String detail;

	public boolean getIsDetail(){
		if(StringUtils.isEmpty(this.detail)){
			return false;
		}
		if(BaseConstant.YNEnum.YES.getCode().equals(this.detail)){
			return true;
		}else{
			return false;
		}
	}
}
